package com.zhao.retry.demo;

import java.lang.annotation.*;

/**
 * Created on 2020/5/20.
 *
 * @author zhao
 * @email 136689260@qq.com
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Retry {

    Class<? extends Throwable>[] value() default {};

    int times() default 3;
}
